package com.vueblog.webapi.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vueblog.webapi.entity.TypeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author luosj
 * @since 2021-05-15
 */
@Repository
public interface TypeMapper extends BaseMapper<TypeEntity> {

    /**
     * 获取分类列表(分页模式)
     */
    List<HashMap<String, Object>> getTypePageList(Page<HashMap<String, Object>> page);

    /**
     * 获取分类列表(非分页模式)
     */
    List<HashMap<String, Object>> getTypeList();
}
